<template>
  <el-row class="tac" style="color: #2e4c2c;">
    <el-col :span="12">
      <el-menu
          :default-active="path"
          class="el-menu-vertical-demo"
          router
          style="width: 200px;min-height: 100vh">
        <el-sub-menu index="1">
          <template #title>
            <span>热销推荐</span>
          </template>
          <el-menu-item index="/mall/goodsList">热销产品</el-menu-item>
<!--          <el-menu-item index="/"><span>货物管理</span></el-menu-item>-->
        </el-sub-menu>

        <el-sub-menu index="2">
          <template #title>
            <span>购物管理</span>
          </template>
<!--          <el-menu-item index="/mall/cart">购物车</el-menu-item>-->
          <el-menu-item index="/mall/my_cart">我的购物车</el-menu-item>
          <el-menu-item index="/mall/order_detail"><span>订单详情</span></el-menu-item>
        </el-sub-menu>

        <!--        <el-menu-item index="/news"><span>新闻管理</span></el-menu-item>-->
        <el-sub-menu index="3">
          <template #title>
            <span>个人信息</span>
          </template>
          <el-menu-item index="/mall/person_detail">详细信息</el-menu-item>
          <el-menu-item index="/mall/change_pwd"><span>修改密码</span></el-menu-item>
        </el-sub-menu>
      </el-menu>
    </el-col>
  </el-row>
</template>
<script>
export default {
  name: "Mall_Aside",
  created() {
    console.log(this.$route.path)
  },
  data() {
    return {
      path: this.$route.path
    }
  }
}
</script>
